import { createRouter, createWebHistory } from 'vue-router' //1.引入vue-router模块
//import HomeView from '../views/HomeView.vue' //2.导入子组件

// 4.路由配置
const routes = [
  {
    path: '/',
    name: 'home',
    meta:{
      title:"首页"
    },
    component: () => import("../views/HomeView.vue"),
  },
]

const router = createRouter({ // 3.实例化 vue-router
  history: createWebHistory(process.env.BASE_URL),
  routes, //路由配置 
});

export default router
